com.atlassian.jira.rpc.soap.service
Class IssueRetriever
java.lang.Object
com.atlassian.jira.rpc.soap.service.IssueRetriever
class IssueRetriever
- extends java.lang.Object
Simply helps to retrieve issue objects and possible their parent
|
Constructor Summary |
IssueRetriever(IssueManager issueManager,
PermissionManager permissionManager)
|
|
Method Summary |
(package private) IssueRetriever.IssueInfo |
retrieveIssue(Issue issue,
User user)
Retrieve a single issue info based on the fact we already have an issue |
(package private) IssueRetriever.IssueInfo |
retrieveIssue(java.lang.Long issueId,
User user)
Retrieve a single issue via it's database id, throwing an exception if the user has no permissions
or the issue does not exist |
(package private) IssueRetriever.IssueInfo |
retrieveIssue(java.lang.String issueKey,
User user)
Retrieve a single issue via it's database id, throwing an exception if the user has no permissions
or the issue does not exist |
private Issue |
retrieveParentIssue(Issue issue,
User user)
Retrieve a single issue via it's database id, throwing an exception if the user has no permissions
but not if it does not exist |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
issueManager
private final IssueManager issueManager
permissionManager
private final PermissionManager permissionManager
IssueRetriever
public IssueRetriever(IssueManager issueManager,
PermissionManager permissionManager)
retrieveIssue
IssueRetriever.IssueInfo retrieveIssue(java.lang.String issueKey,
User user)
throws RemotePermissionException
- Retrieve a single issue via it's database id, throwing an exception if the user has no permissions
or the issue does not exist
- Parameters:
issueKey - the possible issue keyuser - the user in play
- Returns:
- info about the issue including its possible parent
- Throws:
RemotePermissionException - if the user cant see the issue in question or it does not exist
retrieveIssue
IssueRetriever.IssueInfo retrieveIssue(java.lang.Long issueId,
User user)
throws RemotePermissionException
- Retrieve a single issue via it's database id, throwing an exception if the user has no permissions
or the issue does not exist
- Parameters:
issueId - the possible issue iduser - the user in play
- Returns:
- info about the issue including its possible parent
- Throws:
RemotePermissionException - if the user cant see the issue in question or it does not exist
retrieveIssue
IssueRetriever.IssueInfo retrieveIssue(Issue issue,
User user)
throws RemotePermissionException
- Retrieve a single issue info based on the fact we already have an issue
- Parameters:
issue - the issue iduser - the user in play
- Returns:
- info about the issue including its possible parent
- Throws:
RemotePermissionException - if the user cant see the issue in question or it does not exist
retrieveParentIssue
private Issue retrieveParentIssue(Issue issue,
User user)
throws RemotePermissionException
- Retrieve a single issue via it's database id, throwing an exception if the user has no permissions
but not if it does not exist
- Parameters:
issue - the possible child issueuser - the user in play
- Returns:
- an issue or null if its not a sub issue
- Throws:
RemotePermissionException - if the user cant see the parent issue in question